package Chatter::API::View::JSON;
use base qw(Catalyst::View::JSON);

# README : http://blog.hagyroom.com/2008/09/16/catalystviewjson_1.html
use JSON::XS;
sub encode_json {
  my($self, $c, $data) = @_;
  my $encoder = JSON::XS->new->latin1->pretty->allow_nonref;
  $encoder->encode($data);
}

1;

